home *** CD-ROM | disk | FTP | other *** search
/ Sunday Savers: Sharing Fun! I Know My Savior Lives / Sunday Savers: Sharing Fun! I Know My Savior Lives.iso / mac / Xtras / PrintOMatic MX 1.7.3 / PrintOMatic MX (Classic) / -PrintOMatic MX Demo.dir / 00033.txt < prev    next >
Encoding:
Text File  |  2004-04-02  |  1.8 KB  |  24 lines

  1. Adding Pages and Setting the Current Page
  2.  
  3. The following routines are used to add new pages to your document, or set the "current" page, where subsequent text and graphic elements will be placed:
  4.  
  5.     newPage    Create a new page
  6.     setPage    Set the "current" page
  7.  
  8. About the Master Page
  9.  
  10. Page 0 of each document is the document's master page. The master page is the default "current" page of a newly created document, or one that has been cleared by a call to reset. Any text or graphic element added to the master page will be drawn on every page of the document, beneath the contents of each individual page. Calling setPage with a value of 0 will set the master page as the current page of the document.newPage
  11.  
  12. Syntax:    newPage(document)
  13.  
  14. Returns: the page number of the newly created page
  15.  
  16. The newPage function adds a page to the document object and makes it the current page. It returns the page number of the newly created page.
  17.  
  18. NOTE: If you want your document to print, it must have at least one page. A common mistake is inadvertently add a number of elements to the master page ΓÇö instead of page 1 ΓÇö of a document by forgetting to call newPage beforehand. The resulting document will not print because it contains no body pages.setPage
  19.  
  20. Syntax:    setPage document, pageNumber
  21.  
  22. The setPage command sets the "current" page of the document, where subsequent text and graphic elements added to the document will be placed. If the pageNumber value is greater than the number of pages currently in the document, new pages will be added, and the requested page will still become the "current" page.
  23.  
  24. Calling setPage with a value of 0 will set the master page to be the current page. Any text or graphic element added to the master page will be drawn on every page of the document, beneath the contents of each individual page.